package com.genexususa.eo.bing.test.add;

import com.genexususa.eo.bing.connection.TargetManager;
import com.genexususa.eo.bing.test.TestUtil;

public class ConsumeAddTargets {
    public static void main(String[] args) {
        TestUtil testUtil = new TestUtil();
        /*String targetsRequestsXML = "<Bing_TargetRequestCollection xmlns=\"L2TMediaDev\">\n" +
                                        "\t<Bing_TargetRequest xmlns=\"L2TMediaDev\">\n" +
                                            "\t\t<Target>" +
                                                "\t\t\t<Age xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                                    "\t\t\t\t<AgeTargetBidCollection>\n" +
                                                        "\t\t\t\t\t<AgeTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Age>FiftyToSixtyFive</Age>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</AgeTargetBid>\n" +
                                                        "\t\t\t\t\t<AgeTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Age>TwentyFiveToThirtyFive</Age>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</AgeTargetBid>\n" +
                                                    "\t\t\t\t</AgeTargetBidCollection>\n" +
                                                "\t\t\t</Age>\n" +
                                                "\t\t\t<Day xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                                    "\t\t\t\t<DayTargetBidCollection>\n" +
                                                        "\t\t\t\t\t<DayTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Day>Monday</Day>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</DayTargetBid>\n" +
                                                        "\t\t\t\t\t<DayTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Day>Thursday</Day>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</DayTargetBid>\n" +
                                                    "\t\t\t\t</DayTargetBidCollection>\n" +
                                                    "\t\t\t\t<TargetAllDays>false</TargetAllDays>\n" +
                                                "\t\t\t</Day>\n" +
                                                "\t\t\t<Device xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                                    "\t\t\t\t<DeviceTypeCollection>\n" +
                                                        "\t\t\t\t\t<DeviceType>Smartphones</DeviceType>\n" +
                                                        "\t\t\t\t\t<DeviceType>Computers</DeviceType>\n" +
                                                    "\t\t\t\t</DeviceTypeCollection>\n" +
                                                "\t\t\t</Device>\n" +
                                                "\t\t\t<Gender xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                                    "\t\t\t\t<GenderTargetBidCollection>\n" +
                                                        "\t\t\t\t\t<GenderTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Gender>Female</Gender>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</GenderTargetBid>\n" +
                                                        "\t\t\t\t\t<GenderTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Gender>Male</Gender>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</GenderTargetBid>\n" +
                                                    "\t\t\t\t</GenderTargetBidCollection>\n" +
                                                "\t\t\t</Gender>\n" +
                                                "\t\t\t<Hour xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                                    "\t\t\t\t<HourTargetBidCollection>\n" +
                                                        "\t\t\t\t\t<HourTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Hour>ElevenPMToThreeAM</Hour>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</HourTargetBid>\n" +
                                                        "\t\t\t\t\t<HourTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Hour>TwoPMToSixPM</Hour>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</HourTargetBid>\n" +
                                                    "\t\t\t\t</HourTargetBidCollection>\n" +
                                                    "\t\t\t\t<TargetAllHours>false</TargetAllHours>\n" +
                                                "\t\t\t</Hour>\n" +
                                                "\t\t\t<GxTargetId xmlns=\"https://adcenter.microsoft.com/v8\">16153365213</GxTargetId>\n" +
                                                //"\t\t\t<BingTargetId xmlns=\"https://adcenter.microsoft.com/v8\">" + testUtil.targetId1 + "</BingTargetId>\n" +
                                                "\t\t\t<Location xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                                    "\t\t\t\t<RadiusTarget>\n" +
                                                        "\t\t\t\t\t<RadiusTargetBidCollection>\n" +
                                                            "\t\t\t\t\t\t<RadiusTargetBid>\n" +
                                                                "\t\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                                "\t\t\t\t\t\t\t<LatitudeDegrees>6.75</LatitudeDegrees>\n" +
                                                                "\t\t\t\t\t\t\t<LongitudeDegrees>-33.80</LongitudeDegrees>\n" +
                                                                "\t\t\t\t\t\t\t<Name>Radius Target Name 4</Name>\n" +
                                                                "\t\t\t\t\t\t\t<Radius>20</Radius>\n" +
                                                            "\t\t\t\t\t\t</RadiusTargetBid>\n" +
                                                            "\t\t\t\t\t\t<RadiusTargetBid>\n" +
                                                                "\t\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                                "\t\t\t\t\t\t\t<LatitudeDegrees>6.75</LatitudeDegrees>\n" +
                                                                "\t\t\t\t\t\t\t<LongitudeDegrees>-33.80</LongitudeDegrees>\n" +
                                                                "\t\t\t\t\t\t\t<Name>Radius Target Name 4</Name>\n" +
                                                                "\t\t\t\t\t\t\t<Radius>10</Radius>\n" +
                                                            "\t\t\t\t\t\t</RadiusTargetBid>\n" +
                                                        "\t\t\t\t\t</RadiusTargetBidCollection>\n" +
                                                    "\t\t\t\t</RadiusTarget>\n" +
                                                    "\t\t\t\t<TargetAllLocations>false</TargetAllLocations>\n" +
                                                "\t\t\t</Location>\n" +
                                                "\t\t\t<Name xmlns=\"https://adcenter.microsoft.com/v8\">TargetName 1</Name>\n" +
                                            "\t\t</Target>\n" +
                                            "\t\t<CampaignCollection>\n" +
                                                "\t\t\t<Campaign>\n" +
                                                    "\t\t\t\t<AssociateCampaign>true</AssociateCampaign>\n" +
                                                    "\t\t\t\t<GxCampaignId>5445648942</GxCampaignId>\n" +
                                                    "\t\t\t\t<BingCampaignId>" + testUtil.campaignId1 + "</BingCampaignId>\n" +
                                                    "\t\t\t\t<AdGroupCollection>\n" +
                                                        "\t\t\t\t\t<AdGroup>\n" +
                                                            "\t\t\t\t\t\t<AdDistribution xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<BiddingModel xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<GxAdGroupId xmlns=\"https://adcenter.microsoft.com/v8\">64554964</GxAdGroupId>\n" +
                                                            "\t\t\t\t\t\t<BingAdGroupId xmlns=\"https://adcenter.microsoft.com/v8\">" + testUtil.adGroup11 + "</BingAdGroupId>\n" +
                                                            "\t\t\t\t\t\t<Language xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Name xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Network xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<PricingModel xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Status xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                        "\t\t\t\t\t</AdGroup>\n" +
                                                        "\t\t\t\t\t<AdGroup>\n" +
                                                            "\t\t\t\t\t\t<AdDistribution xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<BiddingModel xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<GxAdGroupId xmlns=\"https://adcenter.microsoft.com/v8\">64554965</GxAdGroupId>\n" +
                                                            "\t\t\t\t\t\t<BingAdGroupId xmlns=\"https://adcenter.microsoft.com/v8\">" + testUtil.adGroup12 + "</BingAdGroupId>\n" +
                                                            "\t\t\t\t\t\t<Language xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Name xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Network xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<PricingModel xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Status xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                        "\t\t\t\t\t</AdGroup>\n" +
                                                    "\t\t\t\t</AdGroupCollection>\n" +
                                                "\t\t\t</Campaign>\n" +
                                                "\t\t\t<Campaign>\n" +
                                                    "\t\t\t\t<AssociateCampaign>true</AssociateCampaign>\n" +
                                                    "\t\t\t\t<GxCampaignId>5445648943</GxCampaignId>\n" +
                                                    "\t\t\t\t<BingCampaignId>" + testUtil.campaignIdAux1 + "</BingCampaignId>\n" +
                                                    "\t\t\t\t<AdGroupCollection>\n" +
                                                    "\t\t\t\t</AdGroupCollection>\n" +
                                                "\t\t\t</Campaign>\n" +
                                            "\t\t</CampaignCollection>\n" +
                                        "\t</Bing_TargetRequest>\n" +
                                        "\t<Bing_TargetRequest xmlns=\"L2TMediaDev\">\n" +
                                            "\t\t<Target>" +
                                                "\t\t\t<Age xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                                    "\t\t\t\t<AgeTargetBidCollection>\n" +
                                                        "\t\t\t\t\t<AgeTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Age>FiftyToSixtyFive</Age>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>EightyPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</AgeTargetBid>\n" +
                                                        "\t\t\t\t\t<AgeTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Age>TwentyFiveToThirtyFive</Age>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ZeroPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</AgeTargetBid>\n" +
                                                    "\t\t\t\t</AgeTargetBidCollection>\n" +
                                                "\t\t\t</Age>\n" +
                                                "\t\t\t<Gender xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                                    "\t\t\t\t<GenderTargetBidCollection>\n" +
                                                        "\t\t\t\t\t<GenderTargetBid>\n" +
                                                            "\t\t\t\t\t\t<Gender>Female</Gender>\n" +
                                                            "\t\t\t\t\t\t<IncrementalBid>ThirtyPercent</IncrementalBid>\n" +
                                                        "\t\t\t\t\t</GenderTargetBid>\n" +
                                                    "\t\t\t\t</GenderTargetBidCollection>\n" +
                                                "\t\t\t</Gender>\n" +
                                                "\t\t\t<GxTargetId xmlns=\"https://adcenter.microsoft.com/v8\">16153365214</GxTargetId>\n" +
                                                //"\t\t\t<BingTargetId xmlns=\"https://adcenter.microsoft.com/v8\">" + testUtil.targetId2 + "</BingTargetId>\n" +
                                                "\t\t\t<Location xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                                                    "\t\t\t\t<CityTarget>\n" +
                                                        "\t\t\t\t\t<CityTargetBidCollection>\n" +
                                                            "\t\t\t\t\t\t<CityTargetBid>\n" +
                                                                "\t\t\t\t\t\t\t<City>Addison, Chicago, IL IL US</City>\n" +
                                                                "\t\t\t\t\t\t\t<IncrementalBid>EightyPercent</IncrementalBid>\n" +
                                                            "\t\t\t\t\t\t</CityTargetBid>\n" +
                                                        "\t\t\t\t\t</CityTargetBidCollection>\n" +
                                                    "\t\t\t\t</CityTarget>\n" +
                                                    "\t\t\t\t<CountryTarget>\n" +
                                                        "\t\t\t\t\t<CountryTargetBidCollection>\n" +
                                                            "\t\t\t\t\t\t<CountryTargetBid>\n" +
                                                                "\t\t\t\t\t\t\t<CountryAndRegion>US</CountryAndRegion>\n" +
                                                                "\t\t\t\t\t\t\t<IncrementalBid>EightyPercent</IncrementalBid>\n" +
                                                            "\t\t\t\t\t\t</CountryTargetBid>\n" +
                                                        "\t\t\t\t\t</CountryTargetBidCollection>\n" +
                                                    "\t\t\t\t</CountryTarget>\n" +
                                                    "\t\t\t\t<HasPhysicalIntent>true</HasPhysicalIntent>\n" +
                                                    "\t\t\t\t<MetroAreaTarget>\n" +
                                                        "\t\t\t\t\t<MetroAreaTargetBidCollection>\n" +
                                                            "\t\t\t\t\t\t<MetroAreaTargetBid>\n" +
                                                                "\t\t\t\t\t\t\t<IncrementalBid>EightyPercent</IncrementalBid>\n" +
                                                                "\t\t\t\t\t\t\t<MetroArea>Chicago, IL, IL US</MetroArea>\n" +
                                                            "\t\t\t\t\t\t</MetroAreaTargetBid>\n" +
                                                        "\t\t\t\t\t</MetroAreaTargetBidCollection>\n" +
                                                    "\t\t\t\t</MetroAreaTarget>\n" +
                                                    "\t\t\t\t<StateTarget>\n" +
                                                        "\t\t\t\t\t<StateTargetBidCollection>\n" +
                                                            "\t\t\t\t\t\t<StateTargetBid>\n" +
                                                                "\t\t\t\t\t\t\t<IncrementalBid>EightyPercent</IncrementalBid>\n" +
                                                                "\t\t\t\t\t\t\t<State>US-IL</State>\n" +
                                                            "\t\t\t\t\t\t</StateTargetBid>\n" +
                                                        "\t\t\t\t\t</StateTargetBidCollection>\n" +
                                                    "\t\t\t\t</StateTarget>\n" +
                                                    "\t\t\t\t<TargetAllLocations>true</TargetAllLocations>\n" +
                                                "\t\t\t</Location>\n" +
                                                "\t\t\t<Name xmlns=\"https://adcenter.microsoft.com/v8\">TargetName 2</Name>\n" +
                                            "\t\t</Target>\n" +
                                            "\t\t<CampaignCollection>\n" +
                                                "\t\t\t<Campaign>\n" +
                                                    "\t\t\t\t<AssociateCampaign>false</AssociateCampaign>\n" +
                                                    "\t\t\t\t<GxCampaignId>5445648944</GxCampaignId>\n" +
                                                    "\t\t\t\t<BingCampaignId>" + testUtil.campaignId2 + "</BingCampaignId>\n" +
                                                    "\t\t\t\t<AdGroupCollection>\n" +
                                                        "\t\t\t\t\t<AdGroup>\n" +
                                                            "\t\t\t\t\t\t<AdDistribution xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<BiddingModel xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<GxAdGroupId xmlns=\"https://adcenter.microsoft.com/v8\">64554966</GxAdGroupId>\n" +
                                                            "\t\t\t\t\t\t<BingAdGroupId xmlns=\"https://adcenter.microsoft.com/v8\">" + testUtil.adGroup21 + "</BingAdGroupId>\n" +
                                                            "\t\t\t\t\t\t<Language xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Name xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Network xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<PricingModel xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Status xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                        "\t\t\t\t\t</AdGroup>\n" +
                                                        "\t\t\t\t\t<AdGroup>\n" +
                                                            "\t\t\t\t\t\t<AdDistribution xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<BiddingModel xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<GxAdGroupId xmlns=\"https://adcenter.microsoft.com/v8\">64554967</GxAdGroupId>\n" +
                                                            "\t\t\t\t\t\t<BingAdGroupId xmlns=\"https://adcenter.microsoft.com/v8\">" + testUtil.adGroup22 + "</BingAdGroupId>\n" +
                                                            "\t\t\t\t\t\t<Language xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Name xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Network xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<PricingModel xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                            "\t\t\t\t\t\t<Status xmlns=\"https://adcenter.microsoft.com/v8\"/>\n" +
                                                        "\t\t\t\t\t</AdGroup>\n" +
                                                    "\t\t\t\t</AdGroupCollection>\n" +
                                                "\t\t\t</Campaign>\n" +
                                                "\t\t\t<Campaign>\n" +
                                                    "\t\t\t\t<AssociateCampaign>true</AssociateCampaign>\n" +
                                                    "\t\t\t\t<GxCampaignId>5445648945</GxCampaignId>\n" +
                                                    "\t\t\t\t<BingCampaignId>" + testUtil.campaignIdAux2 + "</BingCampaignId>\n" +
                                                    "\t\t\t\t<AdGroupCollection>\n" +
                                                    "\t\t\t\t</AdGroupCollection>\n" +
                                                "\t\t\t</Campaign>\n" +
                                            "\t\t</CampaignCollection>\n" +
                                        "\t</Bing_TargetRequest>\n" +
                                    "</Bing_TargetRequestCollection>\n";*/

        String targetsRequestsXML = "<Bing_TargetRequestCollection xmlns=\"L2TMediaDev\">\n" +
                "\t<Bing_TargetRequest xmlns=\"L2TMediaDev\">\n" +
                "\t\t<Target>" +
                "\t\t\t<GxTargetId xmlns=\"https://adcenter.microsoft.com/v8\">16153365213</GxTargetId>\n" +
                //"\t\t\t<BingTargetId xmlns=\"https://adcenter.microsoft.com/v8\">" + testUtil.targetId1 + "</BingTargetId>\n" +
                "\t\t\t<Location xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
                "\t\t\t\t<RadiusTarget>\n" +
                "\t\t\t\t\t<RadiusTargetBidCollection>\n" +
                "\t\t\t\t\t\t<RadiusTargetBid>\n" +
                "\t\t\t\t\t\t\t<BidAdjustment>13</BidAdjustment>\n" +
                "\t\t\t\t\t\t\t<IsExcluded>false</IsExcluded>\n" +
                "\t\t\t\t\t\t\t<LatitudeDegrees>6.75</LatitudeDegrees>\n" +
                "\t\t\t\t\t\t\t<LongitudeDegrees>-33.80</LongitudeDegrees>\n" +
                "\t\t\t\t\t\t\t<Name>Radius Target Name 4</Name>\n" +
                "\t\t\t\t\t\t\t<Radius>20</Radius>\n" +
                "\t\t\t\t\t\t</RadiusTargetBid>\n" +
                "\t\t\t\t\t\t<RadiusTargetBid>\n" +
                "\t\t\t\t\t\t\t<BidAdjustment>5</BidAdjustment>\n" +
                "\t\t\t\t\t\t\t<IsExcluded>true</IsExcluded>\n" +
                "\t\t\t\t\t\t\t<LatitudeDegrees>56.75</LatitudeDegrees>\n" +
                "\t\t\t\t\t\t\t<LongitudeDegrees>-63.80</LongitudeDegrees>\n" +
                "\t\t\t\t\t\t\t<Name>Radius Target Name 4</Name>\n" +
                "\t\t\t\t\t\t\t<Radius>10</Radius>\n" +
                "\t\t\t\t\t\t</RadiusTargetBid>\n" +
                "\t\t\t\t\t</RadiusTargetBidCollection>\n" +
                "\t\t\t\t</RadiusTarget>\n" +
                "\t\t\t\t<TargetAllLocations>false</TargetAllLocations>\n" +
                "\t\t\t</Location>\n" +
                "\t\t\t<Name xmlns=\"https://adcenter.microsoft.com/v8\">TargetName 1</Name>\n" +
                "\t\t</Target>\n" +
                "\t\t<CampaignCollection>\n" +
                "\t\t\t<Campaign>\n" +
                "\t\t\t\t<AssociateCampaign>true</AssociateCampaign>\n" +
                "\t\t\t\t<GxCampaignId>5445648942</GxCampaignId>\n" +
                "\t\t\t\t<BingCampaignId>" + testUtil.campaignId1 + "</BingCampaignId>\n" +
                "\t\t\t\t<AdGroupCollection>\n" +
                "\t\t\t\t</AdGroupCollection>\n" +
                "\t\t\t</Campaign>\n" +
                "\t\t</CampaignCollection>\n" +
                "\t</Bing_TargetRequest>\n" +
                "</Bing_TargetRequestCollection>\n";
        TargetManager resource = new TargetManager();
        System.out.println("Consuming AddTargets.....");
        String userName = testUtil.userName;
        String password = testUtil.password;
        String developerToken = testUtil.developerToken;
        long customerId = testUtil.customerId;
        long customerAccountId = testUtil.customerAccountId;
        String applicationId = testUtil.applicationId;
        //String result = resource.addTargets(userName, password, developerToken, customerId, customerAccountId, applicationId, targetsRequestsXML);
        String result = resource.addTargets(customerAccountId, targetsRequestsXML);
        System.out.println("Result:\n" + result);
    }
}
